package fr.vahren.dotastrat.gui;

import com.trolltech.qt.gui.QGridLayout;
import com.trolltech.qt.gui.QLineEdit;
import com.trolltech.qt.gui.QWidget;

public class D2SActionListWidget extends QWidget {

	private QLineEdit playerId;
	private QLineEdit heroId;
	private QLineEdit zoneId;
	private QLineEdit targetId;

	public D2SActionListWidget() {

		QGridLayout gridLayout = new QGridLayout();
		setLayout(gridLayout);
		playerId = new QLineEdit("playerId");
		heroId = new QLineEdit("heroId");
		zoneId = new QLineEdit("zoneId");
		targetId = new QLineEdit("targetId");
		gridLayout.addWidget(playerId, 0, 0);
		gridLayout.addWidget(heroId, 0, 1);
		gridLayout.addWidget(zoneId, 1, 0);
		gridLayout.addWidget(targetId, 1, 1);

	}

	public String getPlayerId() {
		return playerId.text();
	}

	public String getHeroId() {
		return heroId.text();
	}

	public String getZoneId() {
		return zoneId.text();
	}

	public String getTargetId() {
		return targetId.text();
	}

	public void setZoneId(String zoneId2) {
		zoneId.setText(zoneId2);
	}

}
